示例#1
0
 def test_check_csv_wrong_value(self):
     v = 123
     with self.assertRaises(SystemExit) as cm:
         curator.check_csv(v)
     self.assertEqual(cm.exception.code, 1)
示例#2
0
 def test_check_csv_list(self):
     l = ["1", "2", "3"]
     self.assertTrue(curator.check_csv(l))
示例#3
0
 def test_check_csv_unicode(self):
     u = u'test'
     self.assertFalse(curator.check_csv(u))
示例#4
0
 def test_check_csv_positive(self):
     c = "1,2,3"
     self.assertTrue(curator.check_csv(c))
示例#5
0
 def test_check_csv_negative(self):
     c = "12345"
     self.assertFalse(curator.check_csv(c))
示例#6
0
 def test_check_csv_wrong_value(self):
     v = 123
     with self.assertRaises(SystemExit) as cm:
         curator.check_csv(v)
     self.assertEqual(cm.exception.code, 1)
示例#7
0
 def test_check_csv_unicode(self):
     u = u'test'
     self.assertFalse(curator.check_csv(u))
示例#8
0
 def test_check_csv_list(self):
     l = ["1", "2", "3"]
     self.assertTrue(curator.check_csv(l))
示例#9
0
 def test_check_csv_negative(self):
     c = "12345"
     self.assertFalse(curator.check_csv(c))
示例#10
0
 def test_check_csv_positive(self):
     c = "1,2,3"
     self.assertTrue(curator.check_csv(c))