def test_get_friends(self):
     """
     tests that get_friends() returns the set of names of the friends
     returns true if the get_friends() method returns the correct set of names of the friends which are in the set
     """
     Network.get_friends(self)
     #check that it returns the correct names of friends that are within the set
     self.assertTrue("Vanessa" in Network.get_friends(self))
예제 #2
0
 def test_get_friends(self):
     """
     tests that get_friends() returns the set of names of the friends
     returns true if the get_friends() method returns the correct set of names of the friends which are in the set
     """
     Network.get_friends(self)
     #check that it returns the correct names of friends that are within the set
     self.assertTrue("Vanessa" in Network.get_friends(self))
 def test_get_friends(self):
     """
     tests that get_friends() returns the set of names of the friends
     returns true if the get_friends() method returns the correct set of names of the friends which are in the set
     """
     Network.get_friends(self)
     #check that it returns the correct names of friends that are within the set
     return Network.get_friends(self)
     if(Network.get_friends(self)._contains_("Vanessa") and Network.get_friends(self)._contains_("Andrea")):
         return True
     else:
         return False
 def test_get_friends(self):
     """
     tests that get_friends() returns the set of names of the friends
     returns true if the get_friends() method returns the correct set of names of the friends which are in the set
     """
     Network.get_friends(self)
     #check that it returns the correct names of friends that are within the set
     return Network.get_friends(self)
     if (Network.get_friends(self)._contains_("Vanessa")
             and Network.get_friends(self)._contains_("Andrea")):
         return True
     else:
         return False