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