def test_is_subset(self): hs = HashSet([1, 2, 3, 4, 5, 6, 7, 8]) assert HashSet([1, 2, 3]).is_subset(hs) assert not HashSet([11]).is_subset(hs) assert not hs.is_subset([11])
def test_is_subset(self): first_set = HashSet( ['Let', 'Me', 'Reck', 'Orange', 'Pill', 'Good', 'Sir']) second_set = HashSet(['Let', 'Me', 'Reck']) assert first_set.is_subset(second_set) == False assert second_set.is_subset(first_set) == True