def test_constructor_dict_fail_key(range_dict): with pytest.raises(TypeError): Range(range_dict)
def test_constructor_str(range_str): Range(range_str)
def test_constructor_dict_fail(range_dict): with pytest.raises(AssertionError): Range(range_dict)
def test_constructor_dict(range_dict): Range(range_dict)
def test_is_wihtin_other_instance(): assert not (Range("B1").is_within("other_type"))
def test_is_within(range_1_input, range_2_input, equals): assert (Range(range_1_input).is_within(Range(range_2_input))) == equals
def test_equals_other_instance(): assert Range("A1") != "other_type"
def test_equals(range_1_input, range_2_input, equals): assert (Range(range_1_input) == Range(range_2_input)) == equals