def METHOD_NAME(self):
    project1 = Project("admin")
    project2 = Project("admin", portIn=[])
    project3 = Project("admin", portIn=[], portOut=[])
    portOwncloud = Port("port-owncloud")
    projOwncloud1 = Project("admin", portIn=[portOwncloud])
    project1.addPortIn(portOwncloud)
    self.assertEqual(project1, projOwncloud1)
    projOwncloud2 = Project("admin", portOut=[portOwncloud])
    project2.addPortOut(portOwncloud)
    self.assertEqual(project2, projOwncloud2, msg="{},{}".format(
        project2.getDict(), projOwncloud2.getDict()))
    projOwncloud3 = Project(
        "admin", portIn=[portOwncloud], portOut=[portOwncloud])
    project3.addPortIn(portOwncloud)
    project3.addPortOut(portOwncloud)
    self.assertEqual(project3, projOwncloud3)