def test_algo18_pass(self): db = Workbook().active ref = Workbook().active db.append(('DD - Start', 'MM - Start', 'YYYY - Start', '', 'psych!!')) db.append(('12', '12', '2020', 'r belong!!')) self.assertEqual(clean.algo18(db, ref)[2][1], [])
def test_algo18_pass(self): db = Workbook().active ref = Workbook().active db.append(("DD - Start", "MM - Start", "YYYY - Start", "", "psych!!")) db.append(("12", "12", "2020", "r belong!!")) self.assertEqual(clean.algo18(db, ref)[2][1], [])
def test_algo18_fail(self): db = Workbook().active ref = Workbook().active db.append(("DD - Start", "MM - Start", "YYYY - Start", "", "psych!!")) db.append(("12", "12", "1990", "r belong!!")) db.append(("12", "12", "2120", "r belong!!")) self.assertEqual(clean.algo18(db, ref)[2][1], ["1990-12-12 00:00:00 @ row 2"])
def test_algo18_fail(self): db = Workbook().active ref = Workbook().active db.append(('DD - Start', 'MM - Start', 'YYYY - Start', '', 'psych!!')) db.append(('12', '12', '1990', 'r belong!!')) db.append(('12', '12', '2120', 'r belong!!')) self.assertEqual( clean.algo18(db, ref)[2][1], ["1990-12-12 00:00:00 @ row 2"])