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