4
4
folder_name = 'TestRecency'
5
5
6
6
7
- def test_lvsa_returns_most_recent (tmpdir ):
8
- lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('returns_most_recent ' )
7
+ def test_outputs_most_recent (tmpdir ):
8
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('outputs_most_recent ' )
9
9
lvsa_expectation = lvsa_driver .run ()
10
10
11
11
output_value_expectation = lvsa_expectation .check_output ()
@@ -14,8 +14,8 @@ def test_lvsa_returns_most_recent(tmpdir):
14
14
output_value_expectation .check_contains_most_recent_allocation_dynamic_object ()
15
15
16
16
17
- def test_lvsa_returns_most_recent_or_null (tmpdir ):
18
- lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('returns_most_recent_or_null ' )
17
+ def test_outputs_most_recent_or_null (tmpdir ):
18
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('outputs_most_recent_or_null ' )
19
19
lvsa_expectation = lvsa_driver .run ()
20
20
21
21
output_value_expectation = lvsa_expectation .check_output ()
@@ -25,8 +25,8 @@ def test_lvsa_returns_most_recent_or_null(tmpdir):
25
25
output_value_expectation .check_contains_most_recent_allocation_dynamic_object ()
26
26
27
27
28
- def test_lvsa_returns_most_recent_non_recent_or_null (tmpdir ):
29
- lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('returns_most_recent_non_recent_or_null ' )
28
+ def test_outputs_most_recent_non_recent_or_null (tmpdir ):
29
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('outputs_most_recent_non_recent_or_null ' )
30
30
lvsa_expectation = lvsa_driver .run ()
31
31
32
32
output_value_expectation = lvsa_expectation .check_output ()
@@ -37,12 +37,33 @@ def test_lvsa_returns_most_recent_non_recent_or_null(tmpdir):
37
37
output_value_expectation .check_contains_non_recent_allocation_dynamic_object ()
38
38
39
39
40
- def test_lvsa_returns_non_recent_or_null (tmpdir ):
41
- lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('returns_non_recent_or_null ' )
40
+ def test_outputs_non_recent_or_null (tmpdir ):
41
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('outputs_non_recent_or_null ' )
42
42
lvsa_expectation = lvsa_driver .run ()
43
43
44
44
output_value_expectation = lvsa_expectation .check_output ()
45
45
46
46
output_value_expectation .check_number_of_values (2 )
47
47
output_value_expectation .check_contains_null_object ()
48
48
output_value_expectation .check_contains_non_recent_allocation_dynamic_object ()
49
+
50
+
51
+ def test_most_recent_gets_strong_update (tmpdir ):
52
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('most_recent_gets_strong_update' )
53
+ lvsa_expectation = lvsa_driver .run ()
54
+
55
+ output_value_expectation = lvsa_expectation .check_output ()
56
+
57
+ output_value_expectation .check_number_of_values (1 )
58
+ output_value_expectation .check_contains_dynamic_object ()
59
+
60
+
61
+ def test_non_recent_gets_weak_update (tmpdir ):
62
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('non_recent_gets_weak_update' )
63
+ lvsa_expectation = lvsa_driver .run ()
64
+
65
+ output_value_expectation = lvsa_expectation .check_output ()
66
+
67
+ output_value_expectation .check_number_of_values (2 )
68
+ output_value_expectation .check_contains_null_object ()
69
+ output_value_expectation .check_contains_dynamic_object ()
0 commit comments