Example #1
0
 def test_superset_of_disagrees_on_a_superset_sequence(self):
     assert_that([1], is_not(superset_of([1, 2, 3])))
Example #2
0
 def test_superset_of_accepts_generator_as_matcher_data(self):
     assert_that([1, 2, 3], is_(superset_of(i for i in [1])))
Example #3
0
 def test_superset_of_same_sequence_is_superset(self):
     assert_that([1], is_(superset_of([1])))
Example #4
0
 def test_superset_of_agrees_on_a_subset_sequence(self):
     assert_that([1, 2, 3], is_(superset_of([1])))
Example #5
0
 def test_superset_of_empty_sequence_is_superset(self):
     assert_that([], is_(superset_of([])))