802425a7ae809feeda99b8616cbeaed250f3d955,tests/test_BayesianModel.py,TestBayesianModelMethods,test_set_rule_for_states,#TestBayesianModelMethods#,238
Before Change
self.assertListEqual(self.G.get_rule_for_states("a"), [1, 2, 3])
def test_set_rule_for_states(self):
self.G.add_states("a", [1, 2, 3])
self.G.set_rule_for_states("a", [3, 1, 2])
self.assertListEqual(self.G.get_rule_for_states("a"), [3, 1, 2])
def test_all_states_present_in_list(self):
After Change
self.assertListEqual(self.G.get_rule_for_states("a"), [1, 2, 3])
def test_set_rule_for_states(self):
self.G.set_states({"a": [1, 2, 3]})
self.G.set_rule_for_states("a", [3, 1, 2])
self.assertListEqual(self.G.get_rule_for_states("a"), [3, 1, 2])
def test_all_states_present_in_list(self):
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 5
Instances
Project Name: pgmpy/pgmpy
Commit Name: 802425a7ae809feeda99b8616cbeaed250f3d955
Time: 2014-01-10
Author: ankurankan@gmail.com
File Name: tests/test_BayesianModel.py
Class Name: TestBayesianModelMethods
Method Name: test_set_rule_for_states
Project Name: pgmpy/pgmpy
Commit Name: 802425a7ae809feeda99b8616cbeaed250f3d955
Time: 2014-01-10
Author: ankurankan@gmail.com
File Name: tests/test_BayesianModel.py
Class Name: TestBayesianModelMethods
Method Name: test_add_states
Project Name: pgmpy/pgmpy
Commit Name: 802425a7ae809feeda99b8616cbeaed250f3d955
Time: 2014-01-10
Author: ankurankan@gmail.com
File Name: tests/test_BayesianModel.py
Class Name: TestBayesianModelMethods
Method Name: test_get_rule_for_states
Project Name: pgmpy/pgmpy
Commit Name: 802425a7ae809feeda99b8616cbeaed250f3d955
Time: 2014-01-10
Author: ankurankan@gmail.com
File Name: tests/test_BayesianModel.py
Class Name: TestBayesianModelMethods
Method Name: test_no_missing_states
Project Name: pgmpy/pgmpy
Commit Name: 802425a7ae809feeda99b8616cbeaed250f3d955
Time: 2014-01-10
Author: ankurankan@gmail.com
File Name: tests/test_BayesianModel.py
Class Name: TestBayesianModelMethods
Method Name: test_update_node_observed_status
Project Name: pgmpy/pgmpy
Commit Name: 802425a7ae809feeda99b8616cbeaed250f3d955
Time: 2014-01-10
Author: ankurankan@gmail.com
File Name: tests/test_BayesianModel.py
Class Name: TestBayesianModelMethods
Method Name: test_no_extra_states
Project Name: pgmpy/pgmpy
Commit Name: 802425a7ae809feeda99b8616cbeaed250f3d955
Time: 2014-01-10
Author: ankurankan@gmail.com
File Name: tests/test_BayesianModel.py
Class Name: TestBayesianModelMethods
Method Name: test_all_states_present_in_list