'Ensure that CHAP properties are added to the properties dictionary'

def test_add_chap_properties(self):

    properties = {'data': {}}
    self.library._add_chap_properties(properties, 'user1', 'pass1')
    data = properties['data']
    self.assertEqual('CHAP', data['auth_method'])
    self.assertEqual('user1', data['auth_username'])
    self.assertEqual('pass1', data['auth_password'])
    self.assertEqual('CHAP', data['discovery_auth_method'])
    self.assertEqual('user1', data['discovery_auth_username'])
    self.assertEqual('pass1', data['discovery_auth_password'])
