'Code coverage for interface-style base class'

def test_non_implemented(self):

    policy = LoadBalancingPolicy()
    host = Host('ip1', SimpleConvictionPolicy)
    host.set_location_info('dc1', 'rack1')
    self.assertRaises(NotImplementedError, policy.distance, host)
    self.assertRaises(NotImplementedError, policy.populate, None, host)
    self.assertRaises(NotImplementedError, policy.make_query_plan)
    self.assertRaises(NotImplementedError, policy.on_up, host)
    self.assertRaises(NotImplementedError, policy.on_down, host)
    self.assertRaises(NotImplementedError, policy.on_add, host)
    self.assertRaises(NotImplementedError, policy.on_remove, host)
