def test_equal(self): lcd_symbol_instance = LcdSymbol('2') other_instance = LcdSymbol('2') self.assertTrue(lcd_symbol_instance.equals(other_instance))
def test_not_equal(self): lcd_symbol_instance = LcdSymbol('3') other_instance = LcdSymbol('4') self.assertFalse(lcd_symbol_instance.equals(other_instance))
def test_equal_wrong_type_error(self): lcd_symbol_instance = LcdSymbol('0') other_instance = 't' with self.assertRaises(TypeError): lcd_symbol_instance.equals(other_instance)