Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def test_listify_5(self):
     self.assertListEqual(['foo'], Entity.listify(('foo')))
Ejemplo n.º 4
0
 def test_listify_4(self):
     self.assertListEqual(['foo'], Entity.listify(['foo']))
Ejemplo n.º 5
0
 def test_listify_2(self):
     self.assertListEqual([1.1], Entity.listify(1.1))
Ejemplo n.º 6
0
 def test_listify_5(self):
     self.assertListEqual(["foo"], Entity.listify(("foo")))
Ejemplo n.º 7
0
 def test_listify_4(self):
     self.assertListEqual(["foo"], Entity.listify(["foo"]))