-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_scale.py
31 lines (28 loc) · 911 Bytes
/
test_scale.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from scale import Scale
class TestScale(object):
def test_scale_are_equals(self):
# Arrange
first_scale = Scale(
UUID="181d",
address="c8:0f:10:bf:cc:66",
isStabilized=False,
loadRemoved=True,
manufacturerData= bytes.fromhex("5701c80f10bfcc66"),
rawData= bytes.fromhex("820000e2070b0f082924"),
sequence= 10532,
unit= "kg",
weight= 0.0
)
second_scale = Scale(
UUID="181d",
address="c8:0f:10:bf:cc:66",
isStabilized=False,
loadRemoved=True,
manufacturerData= bytes.fromhex("5701c80f10bfcc66"),
rawData= bytes.fromhex("820000e2070b0f082924"),
sequence= 10532,
unit= "kg",
weight= 0.0
)
# Act, Assert
assert first_scale == second_scale