Skip to content

Commit

Permalink
PEP8 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
super3 committed Jul 28, 2015
1 parent 13ba372 commit 2b056d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dataserv/Farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ def list_contracts(self):
self.validate()

con = Contract(self.btc_addr)
return con.list_contracts()
return con.list_contracts()
7 changes: 3 additions & 4 deletions tests/test_Contract.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from pprint import pprint
import unittest
from dataserv.app import db, app
from dataserv.Contract import Contract
Expand Down Expand Up @@ -88,8 +87,8 @@ def test_num_contracts(self):
self.assertEqual(con.num_contracts(), 1)

# should not create a new contract
#con.new_contract()
#self.assertEqual(con.num_contracts(), 1)
# con.new_contract()
# self.assertEqual(con.num_contracts(), 1)

# create two new contracts
Contract(addr).new_contract()
Expand All @@ -113,4 +112,4 @@ def test_seed(self):

contracts = con.list_contracts()
self.assertEqual(contracts['contracts'][0]['seed'], ans1)
self.assertEqual(contracts['contracts'][2]['seed'], ans2)
self.assertEqual(contracts['contracts'][2]['seed'], ans2)
1 change: 0 additions & 1 deletion tests/test_Farmer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import unittest
from dataserv.app import db
from dataserv.Farmer import sha256
Expand Down
5 changes: 3 additions & 2 deletions tools/client.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import hashlib
import RandomIO


# config vars
address = "1CutsncbjcCtZKeRfvQ7bnYFVj28zeU6fo"
byte_size = 1024*1024*10
byte_size = 1024


# lib functions
Expand Down Expand Up @@ -39,4 +40,4 @@ def build(x):


# run it
build(5)
build(5)

0 comments on commit 2b056d0

Please sign in to comment.