Example #1
0
def test_mmtf_nofilename(tmpdir):
    """See issue #23"""
    # Everyone's favourite BRD4 model
    u = mda.fetch_mmtf('4LYI')

    with tmpdir.as_cwd():
        pkas = propkatraj.get_propka(u)
        assert os.path.isfile('current.pka')
Example #2
0
    def u(self):
        top = mmtf.parse(MMTF)
        with mock.patch('mmtf.fetch') as mock_fetch:
            mock_fetch.return_value = top

            return mda.fetch_mmtf('173D')  # string is irrelevant
Example #3
0
 def setUp(self, mock_fetch):
     top = mmtf.parse(MMTF)
     mock_fetch.return_value = top
     self.u = mda.fetch_mmtf('173D')  # string is irrelevant
Example #4
0
    def u(self):
        top = mmtf.parse(MMTF)
        with mock.patch('mmtf.fetch') as mock_fetch:
            mock_fetch.return_value = top

            return mda.fetch_mmtf('173D')  # string is irrelevant