Exemplo n.º 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)
Exemplo n.º 2
0
 def test_check_csv_list(self):
     l = ["1", "2", "3"]
     self.assertTrue(curator.check_csv(l))
Exemplo n.º 3
0
 def test_check_csv_unicode(self):
     u = u'test'
     self.assertFalse(curator.check_csv(u))
Exemplo n.º 4
0
 def test_check_csv_positive(self):
     c = "1,2,3"
     self.assertTrue(curator.check_csv(c))
Exemplo n.º 5
0
 def test_check_csv_negative(self):
     c = "12345"
     self.assertFalse(curator.check_csv(c))
Exemplo n.º 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)
Exemplo n.º 7
0
 def test_check_csv_unicode(self):
     u = u'test'
     self.assertFalse(curator.check_csv(u))
Exemplo n.º 8
0
 def test_check_csv_list(self):
     l = ["1", "2", "3"]
     self.assertTrue(curator.check_csv(l))
Exemplo n.º 9
0
 def test_check_csv_negative(self):
     c = "12345"
     self.assertFalse(curator.check_csv(c))
Exemplo n.º 10
0
 def test_check_csv_positive(self):
     c = "1,2,3"
     self.assertTrue(curator.check_csv(c))