def METHOD_NAME(self):
    # This are example values that are imported from a file and end up at
    # lib/token.import_token
    serial = "ABC123"
    params = {'hashlib': 'sha1',
              'type': 'tan',
              'user': {},
              'serial': 'ABC123',
              'tans': '123465 798111',
              'otpkey': ''}
    tok = import_token(serial, params)
    self.assertEqual("tan", tok.type)
    d = tok.get_as_dict()
    self.assertEqual(d.get("info", {}).get("tan.count"), 2)
    # check tans:
    r = tok.check_otp("798111")
    self.assertEqual(r, 1)
    r = tok.check_otp("798111")
    self.assertEqual(r, -1)
    r = tok.check_otp("123465")
    self.assertEqual(r, 1)