Lines Matching refs:sniffer
1078 sniffer = csv.Sniffer()
1079 self.assertTrue(sniffer.has_header(self.sample12))
1080 self.assertFalse(sniffer.has_header(self.sample13))
1084 sniffer = csv.Sniffer()
1085 self.assertFalse(sniffer.has_header(self.sample10))
1086 self.assertFalse(sniffer.has_header(self.sample11))
1089 sniffer = csv.Sniffer()
1090 self.assertIs(sniffer.has_header(self.sample1), False)
1091 self.assertIs(sniffer.has_header(self.header1 + self.sample1), True)
1094 sniffer = csv.Sniffer()
1095 self.assertIs(sniffer.has_header(self.sample8), False)
1096 self.assertIs(sniffer.has_header(self.header2 + self.sample8), True)
1099 sniffer = csv.Sniffer()
1102 dialect = sniffer.sniff(header, ",;")
1109 sniffer = csv.Sniffer()
1110 dialect = sniffer.sniff(self.sample1)
1115 dialect = sniffer.sniff(self.sample2)
1121 sniffer = csv.Sniffer()
1122 dialect = sniffer.sniff(self.sample3)
1127 dialect = sniffer.sniff(self.sample3, delimiters="?,")
1129 dialect = sniffer.sniff(self.sample3, delimiters="/,")
1131 dialect = sniffer.sniff(self.sample4)
1133 dialect = sniffer.sniff(self.sample5)
1135 dialect = sniffer.sniff(self.sample6)
1137 dialect = sniffer.sniff(self.sample7)
1140 dialect = sniffer.sniff(self.sample8)
1142 dialect = sniffer.sniff(self.sample9)
1147 sniffer = csv.Sniffer()
1148 dialect = sniffer.sniff(self.header1)
1150 dialect = sniffer.sniff(self.header2)
1152 dialect = sniffer.sniff(self.sample2)
1154 dialect = sniffer.sniff(self.sample8)
1156 dialect = sniffer.sniff(self.sample9)