def METHOD_NAME(self):
    """Test that DatasetType returns correctly if the Redis Instance is not empty
    and the name variable exists in the dictionary
    """
    with app.app_context():
        redis_mock = mock.Mock()
        cursor_mock = mock.Mock()
        redis_mock.get.return_value = self.test_dataset
        self.assertEqual(DatasetType(redis_mock)
                         ("All Phenotypes", redis_mock, cursor_mock), "Publish")
        redis_mock.get.assert_called_once_with("dataset_structure")