Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
test cases in file testtsdb.py were failing intermittently as the expected string was sometimes not equal to the mock_urlopen call args because of behavior of json.dumps. Changed the code so we are comparing the list of dictionary rather than the string.
test cases in file testtsdb.py were failing intermittently as the expected string was sometimes not equal to the mock_urlopen call args because of behavior of json.dumps. Changed the code so we are comparing the list of dictionary rather than the string.
this fix is a resolution for issue : https://github.com/python-diamond/Diamond/issues/669