Code Duplication    Length = 13-14 lines in 2 locations

tests/test_config.py 2 locations

@@ 64-77 (lines=14) @@
61
                      driver.GraphSONMessageSerializer)
62
63
64
def test_cluster_config_from_json(event_loop, cluster_class):
65
    cluster = cluster_class(event_loop)
66
    cluster.config_from_file(dirname + '/tests/config/config.json')
67
    assert cluster.config['scheme'] == 'wss'
68
    assert cluster.config['hosts'] == ['localhost']
69
    assert cluster.config['port'] == 8182
70
    assert cluster.config['ssl_certfile'] == ''
71
    assert cluster.config['ssl_keyfile'] == ''
72
    assert cluster.config['ssl_password'] == ''
73
    assert cluster.config['username'] == 'dave'
74
    assert cluster.config['password'] == 'mypass'
75
76
    assert issubclass(cluster.config['message_serializer'],
77
                      driver.GraphSONMessageSerializer)
78
79
80
def test_cluster_config_from_yaml(event_loop, cluster_class):
@@ 80-92 (lines=13) @@
77
                      driver.GraphSONMessageSerializer)
78
79
80
def test_cluster_config_from_yaml(event_loop, cluster_class):
81
    cluster = cluster_class(event_loop)
82
    cluster.config_from_file(dirname + '/tests/config/config.yml')
83
    assert cluster.config['scheme'] == 'wss'
84
    assert cluster.config['hosts'] == ['localhost']
85
    assert cluster.config['port'] == 8183
86
    assert cluster.config['ssl_certfile'] == ''
87
    assert cluster.config['ssl_keyfile'] == ''
88
    assert cluster.config['ssl_password'] == ''
89
    assert cluster.config['username'] == ''
90
    assert cluster.config['password'] == ''
91
    assert issubclass(cluster.config['message_serializer'],
92
                      driver.GraphSONMessageSerializer)
93
94
95
def test_cluster_config_from_module(event_loop, cluster_class, conf_module):