def method(self, method): """Set the :obj:`~conkit.core.contactfile.ContactFile` method Parameters ---------- method : str, list The method will be added to the list of methods """ self._method += Entity.listify(method)
def remark(self, remark): """Set the :obj:`~conkit.core.contactfile.ContactFile` remark Parameters ---------- remark : str, list The remark will be added to the list of remarks """ self._remark += Entity.listify(remark)
def test_listify_5(self): self.assertListEqual(['foo'], Entity.listify(('foo')))
def test_listify_4(self): self.assertListEqual(['foo'], Entity.listify(['foo']))
def test_listify_2(self): self.assertListEqual([1.1], Entity.listify(1.1))
def test_listify_5(self): self.assertListEqual(["foo"], Entity.listify(("foo")))
def test_listify_4(self): self.assertListEqual(["foo"], Entity.listify(["foo"]))