Exemplo n.º 1
0
 def test_subset_of_disagrees_on_a_subset_sequence(self):
     assert_that([1, 2, 3], is_not(subset_of([1])))
Exemplo n.º 2
0
 def test_subset_of_accepts_generator_as_matcher_data(self):
     assert_that([1], is_(subset_of(i for i in [1, 2, 3])))
Exemplo n.º 3
0
 def test_subset_of_accepts_generator_as_assert_data(self):
     assert_that((i for i in [1]), is_(subset_of([1, 2, 3])))
Exemplo n.º 4
0
 def test_subset_of_agrees_on_a_superset_sequence(self):
     assert_that([1], is_(subset_of([1, 2, 3])))
Exemplo n.º 5
0
 def test_subset_of_same_sequence_is_subset(self):
     assert_that([1], is_(subset_of([1])))
Exemplo n.º 6
0
 def test_subset_of_empty_sequence_is_subset(self):
     assert_that([], is_(subset_of([])))