def test_update_rules_split(self):
    rules = [{'foo': 'bar', 'rule': 'all'}, {'bar': 'foo'}, {'remote_group_id': '123456', 'foo': 'bar'}]
    expected_raw_rules = [{'foo': 'bar', 'rule': 'all'}, {'bar': 'foo'}]
    expected_remote_rules = [{'remote_group_id': '123456', 'foo': 'bar'}]
    self.sg.update_rules(rules)
    self.assertEqual(expected_raw_rules, self.sg.raw_rules)
    self.assertEqual(expected_remote_rules, self.sg.remote_rules)
def test_update_rules_split(self):
    rules = [{'foo': 'bar', 'rule': 'all'}, {'bar': 'foo'}, {'remote_group_id': '123456', 'foo': 'bar'}]
    expected_raw_rules = [{'foo': 'bar', 'rule': 'all'}, {'bar': 'foo'}]
    expected_remote_rules = [{'remote_group_id': '123456', 'foo': 'bar'}]
    self.sg.update_rules(rules)
    self.assertEqual(expected_raw_rules, self.sg.raw_rules)
    self.assertEqual(expected_remote_rules, self.sg.remote_rules)