def test_add_family(self): cell = Cell(self.db_) cell.init_based_on_id(1) cell.clear_family() cell.add_to_family('SingleTx') self.assertEqual('SingleTx', cell.get_family()) # check adding same content twice, this should not affect the value cell.add_to_family('SingleTx') self.assertEqual('SingleTx', cell.get_family()) cell.clear_family()