def test_title_returns_valid_filtered_invalid_val(self): """Test function.""" d = dict(foo='bar', bar='foo') assert munging.filter_keys(d, ['baz']) == d
def test_title_returns_valid_empty(self): """Test function.""" assert munging.filter_keys(dict(), []) == {}
def test_title_returns_valid_filtered(self): """Test function.""" assert munging.filter_keys( dict(foo='bar', bar='foo'), ['bar']) == dict(foo='bar')
def test_title_returns_invalid_second(self): """Test function.""" assert munging.filter_keys(None, []) is None
def test_title_returns_invalid_both(self): """Test function.""" assert munging.filter_keys(None, None) is None
def test_title_returns_valid_filtered_invalid_val(self): """Test function.""" d = dict(foo='bar', bar='foo') assert munging.filter_keys(d, ['baz']) == d
def test_title_returns_invalid_first(self): """Test function.""" assert munging.filter_keys({}, None) == {}
def test_title_returns_valid_filtered(self): """Test function.""" assert munging.filter_keys(dict(foo='bar', bar='foo'), ['bar']) == dict(foo='bar')
def test_title_returns_valid_empty(self): """Test function.""" assert munging.filter_keys(dict(), []) == {}
def test_title_returns_invalid_both(self): """Test function.""" assert munging.filter_keys(None, None) is None
def test_title_returns_invalid_second(self): """Test function.""" assert munging.filter_keys(None, []) is None
def test_title_returns_invalid_first(self): """Test function.""" assert munging.filter_keys({}, None) == {}