Beispiel #1
0
    def test_compare_pass(self):
        obj1 = Body(name="Table1").set_header(lambda r: r)
        obj2 = Body(name="Table1").set_header(lambda r: r)

        obj1_before = deepcopy(obj1)

        obj1.compare(obj2, 200, 100)
        self.assertEqual(obj1.to_dict(), obj1_before.to_dict())
Beispiel #2
0
 def test_to_dict_returns_none_when_rows_are_empty(self):
     obj = Body(name="Table1").set_header(Row())
     self.assertEqual(obj.to_dict(), None)