@patch('salt.modules.djangomod._get_django_admin',
           MagicMock(return_value=True))
    def test_loaddata(self):
        mock = MagicMock(return_value=True)
        with patch.dict(djangomod.__salt__, {'cmd.run': mock}):
            self.assertTrue(djangomod.loaddata('DJANGO_SETTINGS_MODULE',
                                               'mydata'))

    # 'collectstatic' function tests: 1
Test if it loads fixture data
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/djangomod_test.py/DjangomodTestCase.test_loaddata