'Validate the check_segment call.'

def test_check_segment(self):

    segment = {'api.NETWORK_TYPE': ''}
    segment[api.NETWORK_TYPE] = p_const.TYPE_VLAN
    self.assertTrue(self.driver.check_segment_for_agent(segment))
    segment[api.NETWORK_TYPE] = p_const.TYPE_GRE
    self.assertFalse(self.driver.check_segment_for_agent(segment))
