Skip to content
Permalink
Browse files

More flake8 fixes

  • Loading branch information...
Jesse Myers
Jesse Myers committed Sep 19, 2016
1 parent fb6f765 commit 90197d34b9fa92054d22ecd95f9e32a79315f534
Showing with 7 additions and 8 deletions.
  1. +1 −1 credstash.py
  2. +4 −6 tests/key_pair_tests.py
  3. +2 −1 tests/pad_left_tests.py
@@ -39,7 +39,7 @@
from base64 import b64encode, b64decode
from boto3.dynamodb.conditions import Attr
from Crypto.Cipher import AES
from Crypto.Hash import *
from Crypto.Hash import * # noqa
from Crypto.Hash.HMAC import HMAC
from Crypto.Util import Counter
from types import ModuleType
@@ -6,15 +6,13 @@
class TestKeyValuePairExtraction(unittest.TestCase):

def test_key_value_pair_has_two_equals_test(self):
self.assertRaises(argparse.ArgumentTypeError, key_value_pair , "==")
self.assertRaises(argparse.ArgumentTypeError, key_value_pair, "==")

def test_key_value_pair_has_zero_equals(self):
self.assertRaises(argparse.ArgumentTypeError, key_value_pair, "")

def test_key_value_pair_has_one_equals(self):
self.assertEqual(key_value_pair("="), ["",""])

def test_key_value_pair_has_one_equals_with_values(self):
self.assertEqual(key_value_pair("key1=value1"), ["key1","value1"])

self.assertEqual(key_value_pair("="), ["", ""])

def test_key_value_pair_has_one_equals_with_values(self):
self.assertEqual(key_value_pair("key1=value1"), ["key1", "value1"])
@@ -1,10 +1,11 @@
import unittest
from credstash import paddedInt


class TestPadLeft(unittest.TestCase):
def test_zero(self):
i = 0
self.assertEqual(paddedInt(i), "0"*19)
self.assertEqual(paddedInt(i), "0" * 19)

def test_ten(self):
i = 10

0 comments on commit 90197d3

Please sign in to comment.
You can’t perform that action at this time.