Пример #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)
Пример #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)
Пример #3
0
 def test_listify_5(self):
     self.assertListEqual(['foo'], Entity.listify(('foo')))
Пример #4
0
 def test_listify_4(self):
     self.assertListEqual(['foo'], Entity.listify(['foo']))
Пример #5
0
 def test_listify_2(self):
     self.assertListEqual([1.1], Entity.listify(1.1))
Пример #6
0
 def test_listify_5(self):
     self.assertListEqual(["foo"], Entity.listify(("foo")))
Пример #7
0
 def test_listify_4(self):
     self.assertListEqual(["foo"], Entity.listify(["foo"]))