Esempio n. 1
0
 def test_merge_tables_with_no_server_config_tables(self):
     table_config_tables = [
         create_table_dict('One', 'holdem', '2-4-limit'),
         create_table_dict('Two', 'holdem', '5-10-no-limit'),
         create_table_dict('Three', 'omaha8', '3-6-limit')
     ]
     merged_tables = tableconfigutils.merge_tables([], table_config_tables)
     assert self._compare_tables(merged_tables, table_config_tables)
 def test_merge_tables_with_no_server_config_tables(self):
     table_config_tables = [
         create_table_dict('One', 'holdem', '2-4-limit'),
         create_table_dict('Two', 'holdem', '5-10-no-limit'),
         create_table_dict('Three', 'omaha8', '3-6-limit')
     ]
     merged_tables = tableconfigutils.merge_tables([], table_config_tables)
     assert self._compare_tables(merged_tables, table_config_tables)
Esempio n. 3
0
 def test_merge_tables_with_no_table_config_tables(self):
     server_config_tables = [
         create_table_dict('One', 'holdem', '2-4-limit'),
         create_table_dict('Two', 'holdem', '5-10-no-limit'),
         create_table_dict('Five', 'omaha', '.10-.20-pot-limit'),
         create_table_dict('Six', 'omaha8', '3-6-limit')
     ]
     merged_tables = tableconfigutils.merge_tables(server_config_tables, [])
     assert self._compare_tables(merged_tables, server_config_tables)
 def test_merge_tables_with_no_table_config_tables(self):
     server_config_tables = [
         create_table_dict('One', 'holdem', '2-4-limit'),
         create_table_dict('Two', 'holdem', '5-10-no-limit'),
         create_table_dict('Five', 'omaha', '.10-.20-pot-limit'),
         create_table_dict('Six', 'omaha8', '3-6-limit')
     ]
     merged_tables = tableconfigutils.merge_tables(server_config_tables, [])
     assert self._compare_tables(merged_tables, server_config_tables)
Esempio n. 5
0
 def test_merge_tables_with_no_tables(self):
     assert tableconfigutils.merge_tables([], []) == []
 def test_merge_tables_with_no_tables(self):
     assert tableconfigutils.merge_tables([], []) == []