def METHOD_NAME(self):
    project1 = Project("admin")
    project2 = Project("admin", portIn=[])
    portOwncloud = Port("port-owncloud")
    projOwncloud1 = Project("admin", portIn=[portOwncloud])
    project1.addPortIn(portOwncloud)
    self.assertEqual(project1, projOwncloud1)
    project1.removePortIn(portOwncloud)
    self.assertEqual(project1, Project("admin", portIn=[]))
    projOwncloud2 = Project("admin", portOut=[portOwncloud])
    project2.addPortOut(portOwncloud)
    self.assertEqual(project2, projOwncloud2)
    project2.removePortOut(portOwncloud)
    self.assertEqual(project1, Project("admin", portOut=[]))