Lines Matching refs:sniffer
959 sniffer = csv.Sniffer()
960 self.assertEqual(sniffer.has_header(self.sample1), False)
961 self.assertEqual(sniffer.has_header(self.header1 + self.sample1),
965 sniffer = csv.Sniffer()
966 self.assertEqual(sniffer.has_header(self.sample8), False)
967 self.assertEqual(sniffer.has_header(self.header2 + self.sample8),
971 sniffer = csv.Sniffer()
972 dialect = sniffer.sniff(self.sample1)
977 dialect = sniffer.sniff(self.sample2)
983 sniffer = csv.Sniffer()
984 dialect = sniffer.sniff(self.sample3)
989 dialect = sniffer.sniff(self.sample3, delimiters="?,")
991 dialect = sniffer.sniff(self.sample3, delimiters="/,")
993 dialect = sniffer.sniff(self.sample4)
995 dialect = sniffer.sniff(self.sample5)
997 dialect = sniffer.sniff(self.sample6)
999 dialect = sniffer.sniff(self.sample7)
1002 dialect = sniffer.sniff(self.sample8)
1004 dialect = sniffer.sniff(self.sample9)
1009 sniffer = csv.Sniffer()
1010 dialect = sniffer.sniff(self.header1)
1012 dialect = sniffer.sniff(self.header2)
1014 dialect = sniffer.sniff(self.sample2)
1016 dialect = sniffer.sniff(self.sample8)
1018 dialect = sniffer.sniff(self.sample9)