def test_get_friends_same_age(self,user): """ tests that get_friends_same_age() returns a set of the names of the friends of the same age returns true if the get_friends_same_age() method returns the correct set of names of the friends of the same age which are in the set """ Network.get_friends_same_age(self,user) if(Network.get_friends_same_age(self,user).__contains__("Vanessa")): return True else: return False
def test_get_friends_same_age(self, user): """ tests that get_friends_same_age() returns a set of the names of the friends of the same age returns true if the get_friends_same_age() method returns the correct set of names of the friends of the same age which are in the set """ Network.get_friends_same_age(self, user) if (Network.get_friends_same_age(self, user).__contains__("Vanessa")): return True else: return False
def test_get_friends_same_age(self): """ tests that get_friends_same_age() returns a set of the names of the friends of the same age returns true if the get_friends_same_age() method returns the correct set of names of the friends of the same age which are in the set """ #creates a user person object userM = Person() userM.set_name("Marilyn") userM.set_age(18) Network.get_friends_same_age(self,userM) self.assertTrue("Vanessa" in Network.get_friends_same_age)
def test_get_friends_same_age(self): """ tests that get_friends_same_age() returns a set of the names of the friends of the same age returns true if the get_friends_same_age() method returns the correct set of names of the friends of the same age which are in the set """ #creates a user person object userM = Person() userM.set_name("Marilyn") userM.set_age(18) Network.get_friends_same_age(self, userM) self.assertTrue("Vanessa" in Network.get_friends_same_age)