Skip to content

Commit

Permalink
More flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Myers committed Sep 19, 2016
1 parent fb6f765 commit 90197d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion credstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions tests/key_pair_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
3 changes: 2 additions & 1 deletion tests/pad_left_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 90197d3

Please sign in to comment.