Lines Matching refs:sniffer
1028 sniffer = csv.Sniffer()
1029 self.assertEqual(sniffer.has_header(self.sample1), False)
1030 self.assertEqual(sniffer.has_header(self.header1 + self.sample1),
1034 sniffer = csv.Sniffer()
1035 self.assertEqual(sniffer.has_header(self.sample8), False)
1036 self.assertEqual(sniffer.has_header(self.header2 + self.sample8),
1040 sniffer = csv.Sniffer()
1041 dialect = sniffer.sniff(self.sample1)
1046 dialect = sniffer.sniff(self.sample2)
1052 sniffer = csv.Sniffer()
1053 dialect = sniffer.sniff(self.sample3)
1058 dialect = sniffer.sniff(self.sample3, delimiters="?,")
1060 dialect = sniffer.sniff(self.sample3, delimiters="/,")
1062 dialect = sniffer.sniff(self.sample4)
1064 dialect = sniffer.sniff(self.sample5)
1066 dialect = sniffer.sniff(self.sample6)
1068 dialect = sniffer.sniff(self.sample7)
1071 dialect = sniffer.sniff(self.sample8)
1073 dialect = sniffer.sniff(self.sample9)
1078 sniffer = csv.Sniffer()
1079 dialect = sniffer.sniff(self.header1)
1081 dialect = sniffer.sniff(self.header2)
1083 dialect = sniffer.sniff(self.sample2)
1085 dialect = sniffer.sniff(self.sample8)
1087 dialect = sniffer.sniff(self.sample9)