'Verifying HMAC-SHA1 signature against one created by OpenSSL.'

def test_sign_hmac_sha1(self):

    self.assertRaises(ValueError, sign_hmac_sha1, self.control_base_string, self.client_secret, self.resource_owner_secret)
    sign = sign_hmac_sha1(self.control_base_string, self.client_secret.decode(u'utf-8'), self.resource_owner_secret.decode(u'utf-8'))
    self.assertEqual(len(sign), 28)
    self.assertEqual(sign, self.control_signature)
