Exemple #1
0
def test_constructor_dict_fail_key(range_dict):
    with pytest.raises(TypeError):
        Range(range_dict)
Exemple #2
0
def test_constructor_str(range_str):
    Range(range_str)
Exemple #3
0
def test_constructor_dict_fail(range_dict):
    with pytest.raises(AssertionError):
        Range(range_dict)
Exemple #4
0
def test_constructor_dict(range_dict):
    Range(range_dict)
Exemple #5
0
def test_is_wihtin_other_instance():
    assert not (Range("B1").is_within("other_type"))
Exemple #6
0
def test_is_within(range_1_input, range_2_input, equals):
    assert (Range(range_1_input).is_within(Range(range_2_input))) == equals
Exemple #7
0
def test_equals_other_instance():
    assert Range("A1") != "other_type"
Exemple #8
0
def test_equals(range_1_input, range_2_input, equals):
    assert (Range(range_1_input) == Range(range_2_input)) == equals