'creating a user should automatically create a new partner'

def test_create(self):

    partners_before = self.env['res.partner'].search([])
    user_foo = self.env['res.users'].create({'name': 'Foo', 'login': 'foo'})
    self.assertNotIn(user_foo.partner_id, partners_before)
