Skip to content

Commit

Permalink
Remove string representation for Decryption
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronLonsdale committed Jun 5, 2019
1 parent a6dddc3 commit 07ed5a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions lantern/structures/decryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ def __init__(self, plaintext, key, score):
self.key = key
self.score = score

def __str__(self):
"""Return the plaintext as the string representation for the object.
Returns:
plaintext
"""
return self.plaintext

def __lt__(self, other):
"""Compare decryptions with other decryptions by score.
Expand Down
6 changes: 0 additions & 6 deletions tests/structures/test_decryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ def test_args():
assert decryption.score == 0


def test_str():
"""Testing string typecast returns plaintext"""
decryption = Decryption("plaintext", "key", 0)
assert str(decryption) == "plaintext"


def test_lt():
"""Testing __lt__ compares using score"""
decryption1 = Decryption("plaintext1", "key1", 0)
Expand Down

0 comments on commit 07ed5a5

Please sign in to comment.