'Test for adding whitelist and blacklist in the rule.
Server should respond with HTTP 400 Bad Request error upon discovering
both ``whitelist`` and ``blacklist`` keywords in the same rule.'

def test_create_mapping_with_blacklist_and_whitelist(self):

    url = (self.MAPPING_URL + uuid.uuid4().hex)
    mapping = mapping_fixtures.MAPPING_GROUPS_WHITELIST_AND_BLACKLIST
    self.put(url, expected_status=http_client.BAD_REQUEST, body={'mapping': mapping})
